package vote.ai.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;
import vote.ai.domain.entity.TextCorrectTask;

@Mapper
public interface TextCorrectTaskMapper extends BaseMapper<TextCorrectTask> {
    @Update("update text_correct_task t set t.finished = 1 where t.correct_task_id = #{taskId}")
    int finishTask(String taskId);
}
